//MyThis.java
package com.xyc.mythis;
class Cat3
{
	private int age;
	private int weight;
	Cat3()
	{
		this(2,4);
		System.out.println("in Cat()");
	}
	Cat3(int a,int w)
	{
		age=a;
		weight=w;
		System.out.println("in Cat(int a,int w)");
	}
	int getAge()
	{
		return age;
	}
	int getWeight()
	{
		return weight;
	}
	void setAge(int age)
	{
		this.age=age;
	}
	void setWeight(int weight)
	{
		this.weight=weight;
	}
}
public class MyThis3
{
	public static void main(String[] args)
	{
		Cat3 cat2=new Cat3();
		System.out.println("Cat2     age:"+cat2.getAge()+"\tweight:"+cat2.getWeight());
		Cat3 cat3=new Cat3(5,10);
		System.out.println("Cat3     age:"+cat3.getAge()+"\tweight:"+cat3.getWeight());
	}
}